import React, { useState } from 'react'
import Son from './Son'

export default function Father() {
    const [count, setCount] = useState(100)
    return (
        <div>
            <h3>
                Father --- { count }
            </h3>
            <button onClick = {() => {
                setCount(2000)
            }}>点我</button>
            <Son count = { count }/>
        </div>
    )
}
